import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  daleteJson
} from "../utils/request";

//查询商品标签分页查询
export function queryGoodsTypeList(data) {
  return post("/api/goods-service/v1/membergoods/queryGoodsTag", data);
}

//新增商品标签典增加
export function addGoodsType(data) {
  return post("/api/goods-service/v1/membergoods/saveGoodsTag", data);
}

//新增下级类型
export function addLowerGoodsType(data) {
  return post("/api/goods-service/v1/goods/addLowerGoodsType", data);
}

//删除商品标签删除（逻辑删除）
export function deleteGoodsType(data) {
    return post("/api/goods-service/v1/membergoods/deleteGoodsTag?uuid=" + data.uuid);
}

//商品标签修改
export function updaterole(data) {
  return post("/api/goods-service/v1/membergoods/updateGoodsTag", data);
}

//5.3.57　采购需求单创建
export function addRequirement(data) {
  return post("/v1/purchase/makePurchaseRequirement", data);
}
//5.3.57　采购需求单修改
export function modifyPurchaseRequirement(data) {
  return put("/v1/purchase/modifyPurchaseRequirement", data);
}
//5.3.57　采购需求单明细查询
export function Requirementinfo(data) {
  return get("/v1/purchase/queryPurchaseRequirementById", data);
}
//5.3.57　组织类型
export function getUserOrgType(data) {
  return post("/api/user-service/v1/user/getUserOrgType", data);
}
